package com.ambow.Entity;
import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.*;

@Entity
@Table
public class  PackageBook extends ID implements Serializable{
	private String acedemicYear;
	private String semester;
	private String pdescription;
	private String grade;
	@ManyToOne
	@JoinColumn(name="major_id",referencedColumnName="id")
	private Major major;//专业
	@ManyToOne
	@JoinColumn(name="level_id",referencedColumnName="id")
	private Level level;//层次
	
	@ManyToOne
	@JoinColumn(name="category_id",referencedColumnName="id")
	private Category category;//类别
	
	@ManyToOne
	@JoinColumn(name="operator_id",referencedColumnName="id")
	private Operator operator;//操作人员
	
	@ManyToOne(targetEntity=TextBook.class)
	@JoinColumn(name="textBook_id",referencedColumnName="id")
	 private TextBook textBook;//教材id
	
	@OneToMany(mappedBy="packageBook")
	private Set<DeliverToStudent> deliverStudents=new HashSet<DeliverToStudent>();//学生出库

	public String getAcedemicYear() {
		return acedemicYear;
	}

	public void setAcedemicYear(String acedemicYear) {
		this.acedemicYear = acedemicYear;
	}

	public String getSemester() {
		return semester;
	}

	public void setSemester(String semester) {
		this.semester = semester;
	}

	public String getPdescription() {
		return pdescription;
	}

	public void setPdescription(String pdescription) {
		this.pdescription = pdescription;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public Major getMajor() {
		return major;
	}

	public void setMajor(Major major) {
		this.major = major;
	}

	public Level getLevel() {
		return level;
	}

	public void setLevel(Level level) {
		this.level = level;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Operator getOperator() {
		return operator;
	}

	public void setOperator(Operator operator) {
		this.operator = operator;
	}
	public TextBook getTextBook() {
		return textBook;
	}
	public void setTextBook(TextBook textBook) {
		this.textBook = textBook;
	}

	public Set<DeliverToStudent> getDeliverStudents() {
		return deliverStudents;
	}

	public void setDeliverStudents(Set<DeliverToStudent> deliverStudents) {
		this.deliverStudents = deliverStudents;
	}
	
	
}
